TweaksConfig

data class TweaksConfig(timeChangedInterval: Double, bandwidthEstimateWeightLimit: Int, languagePropertyNormalization: Boolean, localDynamicDashWindowUpdateInterval: Double?, useFiletypeExtractorFallbackForHls: Boolean, useDrmSessionForClearPeriods: Boolean, shouldEmitAllPendingMetadataOnStreamEnd: Boolean, shouldApplyTtmlRegionWorkaround: Boolean) : Parcelable

This configuration is used as an incubator for experimental features. Tweaks are not officially supported and are not guaranteed to be stable, i.e. their naming, functionality and API can change at any time within the tweaks or when being promoted to an official feature and moved into its final configuration namespace.

Constructors

TweaksConfig
Link copied to clipboard
fun TweaksConfig(timeChangedInterval: Double = DEFAULT_TIME_CHANGED_EVENT_INTERVAL, bandwidthEstimateWeightLimit: Int = DEFAULT_BANDWIDTH_ESTIMATE_WEIGHT_LIMIT, languagePropertyNormalization: Boolean = true, localDynamicDashWindowUpdateInterval: Double? = null, useFiletypeExtractorFallbackForHls: Boolean = false, useDrmSessionForClearPeriods: Boolean = false, shouldEmitAllPendingMetadataOnStreamEnd: Boolean = false, shouldApplyTtmlRegionWorkaround: Boolean = true)

Types

Companion
Link copied to clipboard
object Companion

Properties

bandwidthEstimateWeightLimit
Link copied to clipboard
var bandwidthEstimateWeightLimit: Int
Constantly aggregated and weighted bandwidth samples are summed up to this weight limit to calculate an bandwidth estimation.
exoPlayerCache
Link copied to clipboard
var exoPlayerCache: Cache? = null
A cache instance that is used by the player in read-only mode.
languagePropertyNormalization
Link copied to clipboard
var languagePropertyNormalization: Boolean = true
Specifies if the language property on DASH Representations, HLS Renditions and SmoothStreaming QualityLevels is normalized.
localDynamicDashWindowUpdateInterval
Link copied to clipboard
var localDynamicDashWindowUpdateInterval: Double? = null
The interval in which dynamic DASH windows are updated locally.
shouldApplyTtmlRegionWorkaround
Link copied to clipboard
var shouldApplyTtmlRegionWorkaround: Boolean = true
Specifies whether default positioning values should be assumed when parsing TTML regions in case of unsupported TTML features.
shouldEmitAllPendingMetadataOnStreamEnd
Link copied to clipboard
var shouldEmitAllPendingMetadataOnStreamEnd: Boolean = false
Specifies if PlayerEvent.Metadatas should be emitted for pending metadata when reaching the end of a stream.
timeChangedInterval
Link copied to clipboard
var timeChangedInterval: Double
The frequency in seconds the TimeChanged will be fired.
useDrmSessionForClearPeriods
Link copied to clipboard
var useDrmSessionForClearPeriods: Boolean = false
Specifies whether a DRM session should be used for clear tracks of type video and audio.
useFiletypeExtractorFallbackForHls
Link copied to clipboard
var useFiletypeExtractorFallbackForHls: Boolean = false
Specifies if the player should always fall back to an extractor matching the file type, if no matching extractor was found.

Inherited functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)